package com.yue.jmx.demo2;

import java.util.concurrent.TimeUnit;

/**
 * 功能描述: TODO <br/>
 * 创建时间: 2017/1/3<br/>
 *
 * @author QiuYang
 */
public class Echo {
    public static Message msg = new Message();
    public static boolean running = true;
    public static boolean pause = false;

    public static void main(String[] args) {
        new MessageEngineAgent().start();

        while (running){
            try {
                TimeUnit.SECONDS.sleep(10);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            if (!pause){
                msg.echo();
            }
        }
    }
}
